<?php

namespace PlatBundle\Controller;

use ApiBundle\Controller\BaseController;

class DistrictController extends BaseController
{
    /*
     * 获取区域列表
     */
    public function indexAction()
    {
        if(!$this->get("session")->get("plat_id")){

            return $this->render('PlatBundle:Auth:login.html.twig');
        }

        $data = $this->getApiData("ApiBundle:Public:getDistrict");
        return $this->render("PlatBundle:District:index.html.twig",array("data"=>$data));

    }
}
